package com.bxl;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class DeleteNewsImpl implements DeleteNews {

    @Override
    public int deleteById(int id) {
        int rows=0;
        try {
            String sql=" delete  from news_category where id=?";
            Object[] obj={id};
           // rows= BaseDao.updateObj(sql,obj);
        }catch (Exception e){
            e.printStackTrace();
        }
        return rows;
    }
}
